home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17698 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.sprintlink.net!datalytics!usenet
  2. From: Rob Stewart <stew@datalytics.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Newbie question
  5. Date: Wed, 17 Apr 1996 00:15:45 -0400
  6. Organization: Datalytics, Inc.
  7. Message-ID: <31747071.409A@datalytics.com>
  8. References: <4kq1d5$253@ginger.lei.net> <4kq1k1$253@ginger.lei.net>
  9. NNTP-Posting-Host: 204.62.224.241
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. sidmvl@pixi.com wrote:
  16. > oops Email address was messed up it is corrected now.  Thanks.
  17. > I just started a C++ class in school, and I was writing my first project.  I
  18. > have to include a char, double, int, and a string.  The program compiled just
  19. > fine, but when I run the program I get a fatal error that says I have a float
  20. > overflow.  I know I must be missing something extremely basic, but the help
  21. > files were no help.  The input was digit with two decimal places.  I used the
  22. > following statement to define the precision.
  23. > cout.setf(ios::showpoint);
  24. > cout.precision (4);
  25. > Any help would be appreciated.
  26. > Everyone was once a Newbie........I think.
  27.  
  28. You'll need to supply more relevant parts of the code.  The two 
  29. statements you excerpted merely govern output formatting and 
  30. should have no bearing on your error.
  31.  
  32. -- 
  33. Rob Stewart    | My opinions are generally my own.  They do
  34. Datalytics, Inc.| not necessarily reflect those of my employer.
  35.